package msgs;
import java.io.*;
/**
 * Used to excahnge PMs between users
 * Team 9: Andrew Hayworth, Brian Parrella, Ryan Kortmann, Nina Papa
 * @author Andrew Hayworth
 * @author Ryan Kortmann
 */
public class SimpleMsg extends ClientMsg implements TTConstants, Serializable
{
	private String ip;
	private String from;
	private String to;
	private String msg;
	private String fromIP;
	private boolean offline;
	
	public SimpleMsg(String msg, String from, String to)
	{
		this.msg = msg;
		this.from = from;
		this.to = to;
	}

	public SimpleMsg(String msg, String from, String to, String ip, String fromIP, boolean offline)
	{
		this.msg = msg;
		this.from = from;
		this.to = to;
		this.ip = ip;
		this.fromIP = fromIP;
		this.offline = offline;
	}
	
	public String getMsg()
	{
		return msg;
	}

	public void setMsg(String msg) { this.msg = msg; }

	public void setIp(String ip) { this.ip = ip; }
	public void setFrom(String from) { this.from = from; }
	public void setTo(String to) { this.to = to; }
	public void setFromIp(String fromIp) { this.fromIP = fromIp; }
	public void setOffline(boolean o) { this.offline = o; }

	public String getFrom()
	{
		return from;
	}

	public String getIp()
	{
		return ip;
	}

	public String getTo()
	{
		return to;
	}
	public String getFromIp()
	{
		return fromIP;
	}
	public boolean getOffline()
	{
		return offline;
	}
}